« first day (1826 days earlier)      last day (3122 days later) » 

cas
12:35 AM
anyone got any ideas on this? unix.stackexchange.com/questions/234855/…
 
@cas I changed --location back to --cdrom and posted the results at the end of the OP. It seems to be swapping errors when we swap commands.
 
cas
12:51 AM
That 'permission denied' error is weird. can you read that file with something other than virt-install? as root and as another user? try file /media/usb/CentOS-7-x86_64-DVD-1503-01.iso
 
1:07 AM
@cas I just posted the results in: unix.stackexchange.com/questions/234855/…
 
cas
that's not necessary to post it there. part of the purpose of coming to chat is to avoid spamming the post with a whole lot of trial and error garbage.
 
@cas The problem is that the speed of this chat room will accellerate when everyone returns, so that all this will be lost forever, and no one will be able to find this trial and error. I have a good habit of deleting edits from posts after they have been answered. As it stands, the edits allow a new visitor to quickly see all the trial and error in one place.
 
cas
FYI, i downloaded a centos iso and ran an almost identical command on my system. it has booted the kernel and is now at a menu asking me what to do next.
$ sudo virt-install --name=public-centos7 --disk path=/home/cas/vm/some.img,size=10 --graphics none --vcpus=2 --memory=2048 --location /home/cas/torrents/Software/Linux/CentOS-7-x86_64-Minimal-1503-01/CentOS-7-x86_64-Minimal-1503-01.iso --network bridge=br0 --os-type=linux --os-variant=rhel7.0 --extra-args console=ttyS0
/usr/share/virt-manager/virtinst/osdict.py:26: PyGIWarning: Libosinfo was imported without specifying a version first. Use gi.require_version('Libosinfo', '1.0') before import to ensure that the right version gets loaded.
Starting installer, one moment...
anaconda 19.31.123-1 for CentOS 7 started.
* installation log files are stored in /tmp during the installation
* shell is available on TTY2
* when reporting a bug add logs from /tmp as separate text/plain attachments
01:14:33 Not asking for VNC because we don't have a network
================================================================================
================================================================================
Installation

1) [x] Language settings 2) [!] Timezone settings
 
@cas I cut and pasted all that into a separate text document, so that i can try it. Are you saying that I should do a clean download of CentOS 7?
 
cas
no.
the only really significant changes on my command line are: --extra-args console=ttyS0 so that virt-install connects to the console during the install (essential); and --location /.../centos.iso worked without a problem.
there seems to be a weird problem on you system where virt-install can't seem to read your .ISO file from the USB stick, possibly because it's NTFS. Maybe try copying the file to somewhere else first.
 
1:25 AM
@cas That is what I mean. I need to get an iso file in a format that centos can read. Windows seems to only write to FAT and ntfs. Or burn to an exploded dvd, which is a different OP that has not been answered. I have the iso in my windows devbox and on the ntfs usb, and then exploded onto a dvd. If the usb option is not working, perhaps i just download a clean copy from the net to the linux server and call it a day while i wait for it to download.
 
cas
/var/lib/libvirt/images or /var/lib/libvirt/cd-images are fairly common locations to store disk and CD images for libvirt.
 
[root@localhost ~]# cd /var/lib/libvirt
[root@localhost libvirt]# ls -al
total 32
drwxr-xr-x. 8 root root 4096 Oct 8 10:20 .
drwxr-xr-x. 31 root root 4096 Oct 8 10:20 ..
drwx--x--x. 2 root root 4096 Oct 8 16:30 boot
drwxr-xr-x. 2 root root 4096 Sep 15 07:03 dnsmasq
drwx--x--x. 2 root root 4096 Sep 15 07:03 filesystems
drwx--x--x. 2 root root 4096 Sep 15 07:03 images
drwx------. 2 root root 4096 Sep 15 07:03 network
drwxr-x---. 7 qemu qemu 4096 Oct 8 17:37 qemu
[root@localhost libvirt]# cd /var/lib/libvirt/images
 
cas
there's no evidence to suggest that the .iso image you have is faulty. all you're getting is odd permissions errors. that does not indicate corruption of the .iso image
ok, you've got a fairly typical libvirt directory structure. try copying the .iso to /varlib/libvirt/images and modifying your command line to have --location /var/lib/libvirt/images/CentOS-7-x86_64-DVD-1503-01.iso.
 
@cas the cp command has not returned yet. I imagine it might take a while, as the iso is 4+ gigabytes.
 
cas
yep, i expect so.
btw, my current theory re: the permissions errors is that virt-install is interpreting any error when trying to access the .ISO as a permissions error and falsely reporting it as such. It may just be that it is trying to open the .iso file in a way that isn't compatible with the NTFS file system.
which is why i'm suggesting that copying it to a linux fs may help.
it's worth trying, anyway :)
because there's really no difference between the virt-install command you ran and the one i ran exept that my .iso was on a linux fs. and the --extra-args option, but that solves a completely separate issue (connecting to the console)
 
1:38 AM
@cas The new virt-install command is hung up mid-process, which I assume is promising. But too early to tell whether or not it will end up succeeding.
 
cas
did you use --extra-args console=ttyS0 ? that really is essential, without it you'll see no output and qemu will wait forever for keyboard input it's never going to get.
 
[root@localhost images]# virt-install --name=public-centos7 --disk path=/home/publicvm/some.img,size=10 --graphics none --vcpus=2 --memory=2048 --location /var/lib/libvirt/images/CentOS-7-x86_64-DVD-1503-01.iso --network bridge=br0 --os-type=linux --os-variant=rhel7.0
WARNING No 'console' seen in --extra-args, a 'console=ttyS0' kernel argument is likely required to see text install output from the guest.

Starting install...
Retrieving file .treeinfo... | 2.2 kB 00:00
 
cas
kill that and start again with the --extra-args option.
looks like the weird perms problem is gone, anyway.
 
Shift-6 is not killing it. neither is Ctrl-Shift-6
^ does not kill it.
^] also does not kill it.
 
cas
try Ctrl-] and then typing quit.
 
1:49 AM
that produced:
@cas Should I re-run the command with extra args, even though it says the former command is still running?
 
cas
you need to destroy the domain before you can try re-creating it (it still exists from the last almost-right command)
virsh destroy public-centos7
virsh undefine public-centos7
after you've done that, you can re-run the virt-install with --extra-args console=ttyS0
 
@cas it is now giving me an interactive menu.
 
cas
success!
btw, other people seem to have run into problems similar to yours.
1
Q: KVM can't access iso o raw images outside /var/lib/libvirt/images

penzoidersI'm using Linux Mint Debian Edition (Up. 8) when tryng to start a virtual machine from libvirt (either from commandline or using virt-manager to local qemu-kvm) I get this error when I use an image that is not loaded in the default datastore: if I copy the same image (in this example an .iso fil...

7
Q: KVM image failed to start with virsh, permission denied

JieMy host OS is Ubuntu Server 11.04 (natty) After following the instructions detailed by Ubuntu's help, I created one KVM image using sudo ubuntu-vm-builder kvm hardy --libvirt qemu:///system The image file was created as -rw-r--r-- 1 root root 438M 2011-06-17 14:39 ubuntu-kvm/tmpK9hbU5.qcow...

the latter suggests that selinux is preventing qemu from accessing CD images outside of regiseted libvirt storage pools (like /var/lib/libvirt/images).
another page i found with google suggested that (at least back in 2013) virt-install couldn't cross filesystems - i.e. the disk image and the cd-image had to be on the same filesystem. that sounds a bit bogus to me, but it's possible.
s/it's possible/it's not impossible/
the problem on mint suggests that the qemu user (probably libvirt-qemu - that's what it is on debian based distros anyway) needs rx access to not only the .iso image but to all parent directories in the path to the .iso.
 
2:05 AM
@cas I copied the commands into an instruction sheet in a separate document so that I can reproduce this tomorrow. It is late where i am now. I am going to log off soon. If you want to write up an answer, I would be happy to mark it as accepted and +1 when I return. In the meantime, I will delete the EDITS in my OP as you requested.
 
cas
I just summarised the results of our chat as an answer.
 
@cas Thank you and good night.
 
 
5 hours later…
6:59 AM
@terdon Hey. If you have some time, can we talk? I've got something to ask you. Actually SE related. Maybe in a private room? Let me know.
 
 
6 hours later…
12:53 PM
@FaheemMitha Sure, I created a room and pinged you there. Let me know when you'd like to talk.
 
 
2 hours later…
3:00 PM
Of possible general interest:
Quote:
> There are concerns in the R community over a certain member of the Comprehensive R Archive Network who creates a similar atmosphere (without the sexism, but overall equally hostile).
Now, I wonder who that could be...
And here is the LWN take on it: Sharp: Closing a door
 
 
3 hours later…
6:38 PM
Are there any dedicated LAMP "distros"? I am thinking something like how open OpenMediaVault provides a NAS distro.
 
 
2 hours later…
Ell
9:05 PM
@StrongBad IIRC there is a TurnKey Linux one
but why you'd want the horrors of PHP and MySQL and Apache all at the same time is beyond me ;)
 
9:32 PM
@StrongBad Just use a regular distribution. Debian has everything you could possibly want.
If you want to extensively customize stuff you could consider Gentoo. There are some Gentoo users here who can provide perspective.
@Ell I agree with two out of three. What's wrong with Apache?
 
Ell
10:00 PM
@FaheemMitha I'm no expert really
I just found other stuff light lighttpd much easier to configure
but I'm a programmer, not a sysadmin
 
@Ell Ok. I have no real attachment to Apache, but it seems like a reasonable project.
While as PHP is, of course, an abomination. And MySQL has always struck me as kinda junky.
 
Ell
10:41 PM
Anyway
I have a question
 
@FaheemMitha I know I can just use a standard distro, but I was kinda hoping there might be one with a nice remote management interface.
 
@StrongBad What kind of remote management? But isn't that just another piece of software?
 
Ell
@StrongBad did you look at the turnkey one?
It comes with webmin
 
@StrongBad Install webmin.
There you go.
@StrongBad pretty much any distro with a "server edition" should be fine. So will any other but those with server editions come with some things preinstalled.
 
@FaheemMitha I wouldn't call OMV Debian with packages installed, even tough that is what it technically is.
 
10:47 PM
@StrongBad OMV?
@terdon Doesn't webmin have major security issues? I vaguely thought it was "not recommended".
 
Open Media Vault, it is a NAS distro, like FreeNAS
 
Oh, OpenMediaVault.
@StrongBad Why wouldn't you?
I mean, that's probably what it is.
 
Ell
do any of you know how to boot linux into "pure text mode"?
 
@terdon so do your think things like pfsense for a firewall and open media vault are not worth it?
 
@FaheemMitha I'm sure it isn't by sysadmins. Someone who is asking for a dedicated LAMP distro and wants a remote interface (as opposed to ssh) is clearly not a sysadmin and probably won't mind.
@StrongBad I have no idea. Not my area of expertise.
 
10:52 PM
@Ell Typically something like init 1. The lowest level recovery mode is usually text. X is only started at higher levels. But your grub should have that.
 
@FaheemMitha I think it is more than that. From my understanding repackaging OMV for a different version of Debian or distribution would be hard.
 
@FaheemMitha Also, I was chatting with one of the SF mods the other day and, being a professional sysadmin, he hated all cpanel and such managment GUIs but admitted that webmin is not as bad as the others.
 
@terdon oh
I don't understand why you would use a gui, anyway.
 
@StrongBad That's probably just because of the package versions that ship with it.
@FaheemMitha Because you don't know how to do it any other way and have better things to do than spend your time learning it?
 
@terdon But GUIs are a terrible solution to anything but the simplest tasks.
 
10:54 PM
Personally, I've only ever used webmin to configure SAMBA shares. I didn't care about security and it made my life much easier.
@FaheemMitha Tell that to the millions of Windows users.
 
@terdon I am not overly worried about security and just want something easy.
 
@terdon Life is too short.
 
@StrongBad Thought as much. Then go for webmin. It's easy to install and simple to use.
 
I use a gui to print and burn dvds. That's about it.
 
@FaheemMitha What's wrong with cdrecord?
 
10:55 PM
@terdon Nothing. But brasero lets me just push a button.
 
@FaheemMitha Also, how about i) terminal emulator ii) web browser iii) text editor?
 
@terdon sounds good.
 
@cas I am using the console to install the centos vm downstream of what you helped me with yesterday. I have questions about setting up some of the features such as networking. are you willing to discuss it with me?
 
@terdon The second to some extent. The other two aren't GUIs.
Yes, I suppose you could call a web browser a GUI. Though I've never thought of it like that.
 
@FaheemMitha Oh? You drop to a tty to run your emacs?
@FaheemMitha You've never used the mouse to select something from your terminal?
 
10:57 PM
Ok, question. Does anyone know how to convert from pdf to docx, preferably via the command line?
@terdon I do cut and paste, yes.
 
GUI!!
 
@FaheemMitha isn't that the definition of a gui?
 
@StrongBad Not really, no.
Most of the time I just type text into the terminal.
 
29
Q: How to convert Word (doc) to PDF in linux?

nitinsI have a set of files in .doc format, that need to be converted to .pdf format. I am using Ubuntu linux.

 
And in emacs, sure I use the X version, but I rarely use the buttons.
@terdon Wrong direction.
 
11:00 PM
@FaheemMitha Sure it is. It's a graphical user interface. Everything that isn't simple ASCII text on separate lines is a form of GUI, no matter how primitive.
 
24
Q: PDF to word conversion software?

neoIs there any free software available on Ubuntu that can convert a pdf file to a .doc file?

 
@FaheemMitha Oh, damn, true. Sorry.
 
And even if I was to use the buttons, that wouldn't make it a GUI. A GUI is a front-end thing.
 
Heh, how many SE mods does it take to find an SE answer?
 
@StrongBad Yes, I saw that. But I want command line. And I don't think much of any of those solutions. I wonder if libreoffice can do it command line.
 
11:01 PM
@FaheemMitha Yes. And your terminal is running in a GUI frontend. So's your editor and web browser and clipboard and calendar and clock and all the pretty buttons you click on to launch stuff etc, etc.
 
@terdon Well, only marginally.
@terdon Again, that is marginal functionality.
 
That one looks at doc and not docx. My guess is Libre office can do it
 
Still a GUI
 
@StrongBad Probably. Should I post a question?
 
@FaheemMitha try pdf -> ps -> word. That might be easier.
 
11:02 PM
@terdon What do you think? Should I post a question?
@terdon I don't see why. PS is going the way of the dodo.
 
@FaheemMitha Did you actually read the answers?
 
@terdon yes.
 
@FaheemMitha Not really, but in any case, it might be a simpler path.
@FaheemMitha Read them again, scroll down.
6
A: PDF to word conversion software?

frndusernewbieDownload Abiword from Ubuntu Software Center or you can install it by typing following command in terminal: sudo apt-get install abiword Then perform the conversion: abiword --to=doc example.pdf

 
@terdon That isn't docx though, right?
 
@FaheemMitha Why do you need docx and not doc?
 
11:04 PM
But maybe it supports docx.
@terdon It's the modern format. XML and all that.
 
@FaheemMitha Oh please. Obviously, you need this in order to interact with someone in the Windows world. They can deal with doc just as well as docx.
 
doc is (a) deprecated (b) undocumented/proprietary
 
Ell
@FaheemMitha I mean, I don't even want a framebuffer device
 
@Ell What's your use case?
 
Ell
I'm using nvidia proprietary drivers and booting from uefi
I want to login without using a display manager
 
cas
11:06 PM
@Ell, then don't run a dm
 
@Ell Ok. I don't think you'll get a framebuffer by default. Just text.
 
Ell
@cas right. But nvidia driver means that the virtual consoles are blank screens only
@FaheemMitha ah I see :/
I think what I want really is impossible then
 
@Ell Why?
 
cas
@Ell, no. it doesn't. i run nvidia prop. driver on several machines. some running lightdm or other dm, some just VCs.
 
Ell
@cas are you booting from UEFI or BIOS?
 
cas
11:08 PM
depends on the machine. both.
 
@terdon I think a libreoffice solution would be optimal. I don't know how well abiword would handle it. One sec, let me try docx.
 
@FaheemMitha Seriously, why do you want docx?
 
Ell
@cas and on the machine that boots UEFI, you get VCs working correctly?
 
cas
yes.
 
@terdon I told you - I want an open format.
 
Ell
11:08 PM
Man, I have tried for so many hours and failed at that
 
Call it eccentric if you must.
 
Ell
@cas what distro are you on?
 
cas
the machine i am typing this on now is a UEFI machine. i don't use a dm on it, i run 'startx' after logging in on a console if i want X.
debian. is there anything else?
 
@FaheemMitha So pdf is too closed? Aren't you using LaTeX?
 
Ell
@cas do you have a framebuffer driver in your kernel?
 
11:09 PM
@terdon yes, LaTeX.
 
@cas I've heard of that. That's an Ubuntu derivative, right?
 
cas
i use the proprietary nvidia driver (via the debian dkms package) on this machine.
 
@FaheemMitha Then why fiddle with docx?
Why not stick with LaTeX?
 
Ell
Hmm. Maybe it depends on your graphics card
 
cas
@terdon, well ultimately they're all derivs of kali :)
 
11:10 PM
@terdon Oh, someone wants it in docx.
 
@cas Ah, of course!
 
The usual thing. The world is full of benighted people who use MS Word. What are you going to do?
 
:24619732http://unix.stackexchange.com/questions/197063/how-to-convert-libreoffi‌​ce-odt-to-pdf-in-bash
 
@FaheemMitha There we go. So, this is for someone in the Windows world, so just give them the doc and be done with it :)
 
4
Q: How to convert libreoffice ODT to PDF in bash

JohanI am using libreoffice under CentOS 6. I can convert ODT files to PDF with: libreoffice --headless --convert-to pdf *.odt but the problem is that it only works when no document is open in libreoffice. When I specify --env:UserInstallation=file:///path/to/some/directory as suggested in one of th...

 
11:11 PM
@terdon One has ones principles.
 
@FaheemMitha If you did, you'd refuse to provide it in a format that is compatible with such a closed system :P
 
Ell
@cas here describes my issue: wiki.gentoo.org/wiki/NVidia/nvidia-drivers
go down to "required kernel options"
 
@terdon Well, I've bent my principles slightly. :-)
 
Ell
> For x86 and AMD64 processors, the in-kernel framebuffer driver conflicts with the binary driver provided by nVidia. When compiling the kernel for these CPUs, completely remove support for the in-kernel driver as shown:
 
The answer says unoconv can convert to/from anything ibre office can handle
 
Ell
11:12 PM
> A framebuffer alternative is uvesafb, which can be installed parallel to x11-drivers/nvidia-drivers.

For (U)EFI systems, uvesafb will not work. Be warned that enabling efifb support in kernel (CONFIG_FB_EFI=y) causes intermittent problems with the initialization of the nvidia drivers. There is no known alternative framebuffer for (U)EFI systems.
 
@FaheemMitha Bend them a bit more, open the PDF in libreoffice and save as docx.
 
@terdon You mean doc? And I'd like a command line solution. I wonder if I can convert from PDF to docx inside libreoffice. Hmm, let me try.
 
cas
so, follow the instructions. disable the fb if you want proprietary nvidia driver.
 
Ell
@cas I have
I have tried booting with nomodeset and nofb
I have tried doing gfxmode="text"
 
@FaheemMitha I'm just saying that you seem to be forcing yourself to go through a whole lot of hoops just for something you would have finished 10 minutes ago with 3 clicks of the GUI.
 
Ell
11:15 PM
maybe the kernel ignores nofb.
Hmm
 
@terdon Well, we are freaks over here. That's why we do what we do.
 
@StrongBad Thank you. That's helpful.
 
does anyone know how to set up networking inside a centos 7 virtual machine from the command line? here is the link: unix.stackexchange.com/questions/235138/…
 
@cas do you have any experience with that? Poor CodeMed has been trying for ages and I've been hoping to attract the attention of a real sysadmin.
 
11:23 PM
faheem@orwell:~/personal/business/smyt$ unoconv -f docx razia2.pdf
unoconv: UnoException during export phase:
Unable to store document to file:///home/faheem/personal/business/smyt/razia2.docx (ErrCode 3088)

Properties: ((com.sun.star.beans.PropertyValue){ Name = (string)"OutputStream", Handle = (long)0x0, Value = (any){ (com.sun.star.uno.XInterface)0x1c69b28{, supportedInterfaces={com.sun.star.lang.XTypeProvider,com.sun.star.io.XOutputStream}} }, State = (com.sun.star.beans.PropertyState)DIRECT_VALUE }, (com.sun.star.beans.PropertyValue){ Name = (string)"Overwrite", Handle = (long)0x0, Va
Might be using the wrong command...
 
@derobert might know too, I guess.
@JennyD any experience with setting up VMs from the CLI? (Sorry, pinging all the sysadmins I see).
@CodeMed did you ever get the thing to boot from the dvd?
 
@terdon Thanks to @cas, I was able to just copy an iso file onto the server and then call the iso file from the virt-install command in the new OP that I posted several comments up. Thank you for asking.
 
@CodeMed Yes, I just saw the question he helped you with. SO at least there's been progress. Cool.
 
Ell
welp, I guess I ought to reboot
meh nothing
 
cas
11:35 PM
@terdon, i'm no expert on centos or the centos installer. i would expect (simple) networking to "just work"...qemu gives the VM a bridge to eth0 and the VM just sees it as eth0.
 
Oh well. I have no idea. My knowledge of networking is rudimentary.
 
@cas Yes, that is my guess also. But eth0 is disconnected by default. When I use the gui to install the no-gui host OS, turning on eth0 is as easy as sliding a switch from left to right. Then I go into a config file and re-write it with my own settings, but I can do that using a keyboard attached to the computer. With the guest, I do not know how to connect to change the config file, etc in the guest os
 
cas
You're actually connected to the VM's console when you see that installer menu. if you can get a root shell there, you should be able to configure networking in whatever way you'd normally do it. Once the installer has finished running, you can re-connect to the console of a running VM with virsh console public-centos7. run virsh help console for details.
you might also want to examine the output of virsh dumpxml public-centos7 to see if there's a network interface defined for that VM.
 
11:51 PM
the options are:
1) IPv4 address or "dhcp" for DHCP
dhcp
2) IPv4 netmask
3) IPv4 gateway
4) IPv6 address or "auto" for automatic, "dhcp" for DHCP, "ignore" to turn off
auto
5) IPv6 default gateway
6) Nameservers (comma separated)
7) [ ] Connect automatically after reboot
8) [ ] Apply configuration in installer
Configuring device eth0.
the host os connects using:
DEVICE=eno1
TYPE=Ethernet
BOOTPROTO=none
IPADDR=ip.addr.of.server
NETMASK=255.255.255.0
GATEWAY=ip.address.of.router
ONBOOT=yes
NM_CONTROLLED=yes
DNS1=8.8.4.4
DNS2=8.8.8.8
 
cas
are you running a dhcp server on the network? or is libvirt running dnsmasq on br0 for the VMs? if so, choose DHCP (option 1).
 
the network is just a cable modem, a devbox, and a dev server.
 
cas
otherwise, probably option 2 or 3...pick an unused IP on the same subnet as the host. here's where my lack of knowledge of centos installer is a problem, i don't know why they distinguish between "IPv4 Netmask" and "IPv4 gateway" or exactly what those terms mean to the centos devs who made that menu.
 
i assume i am not running dhcp because of the config file from the server i just posted above.
 
cas
then pick an IP address on the same subnet as the host, and set the gateway address to be the ip of the router.
imo, it would be worthwhile figuring out how to configure libvirt to run dnsmasq to provide DHCP to the VMs. that way you won't have to repeat this process for every VM you make. you can configure dnsmasq to offer a limited range of IP addresses (e.g. 192.168.1.100 to 192.168.1.200) rather than the entire /24. for example.
or just run a dhcp server on your cable modem. they usually have that capability as an option.
 

« first day (1826 days earlier)      last day (3122 days later) »