Unable to create a disk-less vm (pxe boot) in KVM (VMM)
Linux - Virtualization and CloudThis forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Unable to create a disk-less vm (pxe boot) in KVM (VMM)
When I try to create a disk-less vm (for pxe boot) in KVM (opensuse13.2) I receive the following error message:
Unable to complete install: 'list index out of range'
----------------------------------------------------------------------------------------
-qemu-kvm-2.1.0-2.9.x86_64
-Virtual Machine Manager - 1.0.1
-Linux ddsw01 3.16.7-7-desktop #1 SMP PREEMPT Wed Dec 17 18:00:44 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
----------------------------------------------------------------------------------------
More details:
Unable to complete install: 'list index out of range'
Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 91, in cb_wrapper
callback(asyncjob, *args, **kwargs)
File "/usr/share/virt-manager/virtManager/create.py", line 1908, in do_install
guest.start_install(meter=meter)
File "/usr/share/virt-manager/virtinst/guest.py", line 416, in start_install
start_xml, final_xml = self._build_xml(is_initial)
File "/usr/share/virt-manager/virtinst/guest.py", line 469, in _build_xml
start_xml = self.get_install_xml(install=True, disk_boot=disk_boot)
File "/usr/share/virt-manager/virtinst/guest.py", line 319, in get_install_xml
return self._do_get_install_xml(*args, **kwargs)
File "/usr/share/virt-manager/virtinst/guest.py", line 354, in _do_get_install_xml
target_disk = self.get_devices("disk")[0]
IndexError: list index out of range
From terminal using "virt-install --hvm --connect qemu:///system --network=nat:installation --pxe --graphics spice --name rhel6-machine --ram=756 --vcpus=4 --os-type=linux --os-variant=rhel6 --nodisk", received the same issue.
Starting install...
ERROR list index out of range
Domain installation does not appear to have been successful.
If it was, you can restart your domain by running:
virsh --connect qemu:///system start rhel6-machine
otherwise, please restart your installation.
Looks like the installation expects to have a disk, and when it gets none, the disk list index is out of range (of at least one).
I'd just create a new VM in VMM without disks, change the boot order to PXE first, and start it normally, not via virt-install or the first installation sequence you get in VMM when you initially create a VM
PXE installation with virt-install
virt-install PXE installations require both the --network=bridge:installation parameter, where installation is the name of your bridge, and the --pxe parameter.
@dyasny - this is the thing that I cannot create the vm without the disk. I cannot reach the vm creation stage to modify the boot order. it's the same error message with virt-install or from VMM.
@jefro - the vm creation works when assigning a disk, but from my point of view it should be possible to create a disk-less vm if the VMM is offering it. Probably I should file a bug for this. I will wait maybe somebody had a similar situation and a fix.
Making a small storage disk is the way posted on the RH site. It should have no negative effect. Sometimes you just do what the instructions say and not worry about it. Maybe it is a coded issue for some reason.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.