On 4/28/11, Gleb Natapov gleb@redhat.com wrote:
Qemu is not intended to be used directly by end user. It is too complex as you already found out. VMware don't even give you access to such low parts of virt stack. You should use libvirt or virt-manager instead. Especially if you are concerned about security. I think libvirt can start guest on headless server.
Sorry for the confusion, I was using libvirtd in CLI, i.e. virt-install and virsh, not qemu directly.
If this still fails for you you need to complain to libvirt developers (not in a rant mode, but providing details of what exact version of software you have problem with and what are you trying to do). And libvirt developers will not be shy to complain to qemu developers if the problem turned to be on their side.
Apologies about the rant mode as well. Before that, I tried sending two emails (25th and 26th Apr) to the KVM list with some details, hoping to get some advice. But each of these failed to materialize on the kvm list for unknown reasons.
So I resorted to posting to the CentOS list, where I did get some response for which I'm very thankful. The rant post came when despite the additional advice which helped me get a little further, I keep running into unexpected brickwalls like anaconda not seeing the "dvd" (mounted ISO specified using --location) that it just booted from.
Out of frustration, I CC'd that particular email to the kvm list, figuring that since it's likely to get me flamed, the imp of perversity would probably let it through... and it did.
As far as I know libvirt has no problem using bridged networking and virt-manager use libvirt so it should work if you use new enough virt stack, but you should ask on libvirt mailing list instead.
I guess those were outdated warnings on older versions. I'll give it another spin given some of the new suggestions like using virt-install to create the disk file. If it still doesn't work, I'll go check the libvirt ML (I'm belatedly getting the idea that libvirt is not part of kvm).
On 28.4.2011 18.58, Emmanuel Noobadmin wrote:
like anaconda not seeing the "dvd" (mounted ISO specified using --location) that it just booted from.
That's ok, once you know that... But I agree, it is frustrating, because of lack of documentation. How much time wasted!
I found an interesting series of tutorials, looks pretty much up-to-date. Here is one:
http://www.cyberciti.biz/faq/kvm-virt-install-install-freebsd-centos-guest/
I never tried handing the install media over with the --connect (-c) flag like there:
virt-install... -c /nfsclient/iso/FreeBSD-7.3-RELEASE-amd64-disc1.iso \
- Jussi
On Thu, Apr 28, 2011 at 08:17:46PM +0300, Jussi Hirvi wrote:
On 28.4.2011 18.58, Emmanuel Noobadmin wrote:
like anaconda not seeing the "dvd" (mounted ISO specified using --location) that it just booted from.
That's ok, once you know that... But I agree, it is frustrating, because of lack of documentation. How much time wasted!
does that mean that you volonteer to add some pages to wiki.centos.org (-> centos-docs mailing list for more) ? ;P
Tru
On 28.4.2011 20.29, Tru Huynh wrote:
does that mean that you volonteer to add some pages to wiki.centos.org (-> centos-docs mailing list for more) ? ;P
Maybe I could, How could that be done? Though I should have started to think about that earlier, now the big install hassle starts to be over already. But at least I have a rudimentary roadmap for installing CentOS 4 or 5 guests text-based.
BTW, can guests be installed on raw (unformatted or formatted) partitions (not images)? Can virt-install do that? I tried it and had no luck.
- Jussi
On Thu, 28 Apr 2011, Jussi Hirvi wrote:
BTW, can guests be installed on raw (unformatted or formatted) partitions (not images)? Can virt-install do that? I tried it and had no luck.
- Jussi
You can install them to logical volumes...
Season to taste virt-install -p -n test_phys -r 512 --arch=x86_64 --os-type=linux --os-variant=rhel5 -l http://192.168.200.2/c5u5_x86_64 -x ks=http://192.168.200.2/buildhost.ks -f /dev/vg_tosh/lv_phys -b virbr0
---------------------------------------------------------------------- Jim Wildman, CISSP, RHCE jim@rossberry.com http://www.rossberry.net "Society in every state is a blessing, but Government, even in its best state, is a necessary evil; in its worst state, an intolerable one." Thomas Paine
On Thu, 28 Apr 2011, Jussi Hirvi wrote:
BTW, can guests be installed on raw (unformatted or formatted) partitions (not images)? Can virt-install do that? I tried it and had no luck.
- Jussi
You can install them to logical volumes...
On 28.4.2011 21.29, Jim Wildman wrote:
Season to taste virt-install -p -n test_phys -r 512 --arch=x86_64 --os-type=linux --os-variant=rhel5 -lhttp://192.168.200.2/c5u5_x86_64 -x ks=http://192.168.200.2/buildhost.ks -f /dev/vg_tosh/lv_phys -b virbr0
It took me some time to get the kickstart file load at all, because I also had to fit in the console specification, to get a text-based installation. This is what the script now looks (only name and ip changed):
virt-install --name myvm \ --os-variant rhel5.4 --ram 512 \ --vcpus 1 --accelerate \ --nographics -v \ --location /mnt/centos56/ --network bridge:br0 \ --disk path=/kv2/myvm.img,size=15 \ --extra-args "ks=http://12.34.56.78/anaconda-ks.ks console=ttyS0";
There is a mounted CentOS 5.6 DVD at /mnt/centos56. The kickstart file specifies the URL for http installation of CentOS 5.6.
It worked just beautifully, and fast too. The installer only asked me if I am sure that I want to format the virtual sisk. Otherwise it was all automatic. What a pleasure!
- Jussi