[virt-tools-list] virt-install 0.400-3: cannot install
Gerry Reno
greno at verizon.net
Mon Nov 23 02:08:21 UTC 2009
Gerry Reno wrote:
> Gerry Reno wrote:
>> Cole Robinson wrote:
>>> On 11/22/2009 02:04 PM, Gerry Reno wrote:
>>>
>>>> Gerry Reno wrote:
>>>>
>>>>> Cole Robinson wrote:
>>>>>
>>>>>> On 11/22/2009 01:20 PM, Gerry Reno wrote:
>>>>>>
>>>>>>> Cole Robinson wrote:
>>>>>>>
>>>>>>>> On 11/22/2009 01:12 AM, Gerry Reno wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>>> I'm trying to do a text-based install using virt-install
>>>>>>>>> 0.400-3 on a
>>>>>>>>> ubuntu server 9.10 but it is refusing to install. Here is the
>>>>>>>>> form of
>>>>>>>>> the command I'm using:
>>>>>>>>>
>>>>>>>>> $ sudo -s
>>>>>>>>> # virt-install -n "DOMAIN-1" --vcpus=4 --ram=2048 --disk
>>>>>>>>> path=/var/lib/libvirt/images/DOMAIN-1.img
>>>>>>>>> --location=http://mirrors.us.kernel.org/ubuntu-releases/karmic/ubuntu-9.10-server-amd64.iso
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --accelerate --network=bridge:br0 --nographics
>>>>>>>>> --extra-args="console=tty0 console=ttyS0,115200"
>>>>>>>>>
>>>>>>>>> I've tried local, nfs, http for locations and it either says its
>>>>>>>>> not an
>>>>>>>>> installable distribution or I get a ValueError: Invalid install
>>>>>>>>> location. But I can wget the iso with no problem using the
>>>>>>>>> same url.
>>>>>>>>>
>>>>>>>>> Can anyone point me to what is wrong with my command line?
>>>>>>>>>
>>>>>>>>>
>>>>>>>> --location needs to point to an install tree, not an iso. You
>>>>>>>> should
>>>>>>>> be able
>>>>>>>> to replace --location with --cdrom to make things work. This is
>>>>>>>> described in
>>>>>>>> the virt-install man page.
>>>>>>>>
>>>>>>>> HTH,
>>>>>>>> Cole
>>>>>>>>
>>>>>>>>
>>>>>>> Ok, I just tried it replacing --location with --cdrom and it
>>>>>>> gives me
>>>>>>> the exact same ValueError: Invalid install location Opening URL
>>>>>>> http://....
>>>>>>>
>>>>>>>
>>>>>> Argh, yes. I was wrong about that, --cdrom also expects a top level
>>>>>> distro
>>>>>> path. That should be fixed though, to just allow pointing to a cdrom
>>>>>> like you did.
>>>>>>
>>>>>>
>>>>>>> So I nfs mounted the iso across the network and then passed the
>>>>>>> mountpoint to --cdrom and this at least creates the domain but
>>>>>>> then it
>>>>>>> just sits there at "Escape is ^]" and does not do anything else.
>>>>>>>
>>>>>>> Is there something wrong with my console args?
>>>>>>>
>>>>>>>
>>>>>> If you boot off a cdrom, kernel args have no effect, since we
>>>>>> have no
>>>>>> way to
>>>>>> pass them in to the cd. Extra args only work if you directly boot a
>>>>>> kernel.
>>>>>> You should be able to try using
>>>>>>
>>>>>> --location
>>>>>> http://mirrors.us.kernel.org/ubuntu/dists/karmic/main/installer-amd64/
>>>>>>
>>>>>>
>>>>>> which will do a direct kernel boot, allowing extra args.
>>>>>>
>>>>>> - Cole
>>>>>>
>>>>>>
>>>>> I think our posts just crossed. I try this and get back...
>>>>>
>>>>> -Gerry
>>>>>
>>>> Ok, that location is working but the guest network is behaving
>>>> painfully
>>>> slow. I have a 20Mbps service but the install file retrieval is going
>>>> like 56kbps. Ugh...
>>>>
>>>>
>>>
>>> I think kernel.org gets a ton of traffic, it might be worth trying
>>> another mirror.
>>>
>>> - Cole
>>>
>> I think it is past that point and when it is retrieving all the
>> packages from us.archive.ubuntu.com. Either that site is really slow
>> or the guest network is slow. I'll have to see which after the
>> install completes. Thanks for getting this working for me.
>>
> It finally finished the install and rebooted but now it appears that
> the guest is not booting. So need to investigate why it doesn't boot
> up. No console output at all after I start the guest. I dumped the
> xml and the boot dev is now "hd" and the path to the image is correct.
>
> -Gerry
Ok, I reran the install and got the exact same result. No bootup or no
console output at least.
Here is the process line:
root 23068 1 0 20:46 ? 00:00:02 /usr/bin/kvm -S -M
pc-0.11 -m 2048 -smp 4 -name DOMAIN-1 -uuid
b1620075-a0ba-1246-fd67-1243c20870a6 -nographic -monitor
unix:/var/run/libvirt/qemu/DOMAIN-1.monitor,server,nowait -boot c -drive
file=/var/lib/libvirt/images/DOMAIN-1.img,if=ide,index=0,boot=on -net
nic,macaddr=54:52:00:4b:f1:a6,vlan=0,name=nic.0 -net
tap,fd=17,vlan=0,name=tap.0 -serial pty -parallel none -usb
I see it has both -monitor and -serial. Does that make any difference?
-Gerry
More information about the virt-tools-list
mailing list