![]() |
kvm install guest without gui?
I'm running Debian Squeeze and kvm/qemu which installed successfully. Is there any equivalent to the way xen did it, where it bootstraps in and you just console in and set the rest up, or do you have to build vnc somehow to finish the guest install? I don't want a gui on either host or guest.
I have tried to start a new vm using: Code:
virt-install --connect qemu:///system -n vm11 -r 1024 --vcpus=8 -f /home/vm/vm11.qcow3 -s 100 -c /some/path/debian/debian-testing-amd64-CD-1.iso -vnc :1 --noautoconsole --os-type linux --os-variant debianSqueeze --accelerate --network=bridge:br0 --hvmCode:
vncviewer :1 Code:
Error: can't open display |
Ubuntu has the vmbuilder tool which does it, but I don't know if it's available for Squeeze as well.
Otherwise, you must use VNC, but you don't need to install a desktop on the host or guest. You jsut need some desktop system with a VNC client. |
vmbuilder is available for Etch, but still waiting to be ported to Squeeze, it errors out when I attempt to run it.
on a Debian machine with a gui and vnc on the same subnet trying to connect to ip.of.kvm.box:1 I get a connection refused, though I can vnc/rdp using this same client to several other boxes on the subnet, do I need to install any other app on the KVM box? The KVM box doesn't have a gui. If I can't get this to work, can I do the same thing in virtualbox, and is virtualbox performance similar to KVM? Most of the time I don't use gui's at all, that's a real disadvantage for server admin, which is why I used xen until it got pulled from the kernel in Squeeze :( |
Quote:
Code:
iptables -LQuote:
|
Since VirtualBox still needs a vnc server, I decided to just work on KVM again, in the meantime I got vncviewer to run a remote box after installing (on server)
Code:
apt-get install tightvncserver xtightvncviewerCode:
virt-install --connect qemu:///system -n sq1 -r 1024 --vcpus=8 \Code:
ERROR Guest name 'c' is already in use.Code:
virsh # list --allCode:
ps aux | grep virtCode:
kill 2449 |
I have also tried to
Code:
virshCode:
virt-install --connect qemu:///system -n sq1 -r 1024 --vcpus=8 \Code:
ERROR Guest name 'c' is already in use.Code:
virt-install --promptCode:
ERROR this function is not supported by the hypervisor: virConnectNumOfDefinedStoragePools |
Did you try
Code:
undefine c |
Code:
virsh # undefine c |
I submitted a bug report to Debian Squeeze bugtracker, will post back here if I hear something, unless someone here has any suggestions left?
|
ok, even after you run virsh, you still have to connect to the local machine to undefine it:
Code:
virsh -c qemu:///system undefine cCode:
virt-install --connect qemu:///system --name sq3 --ram 1024 --vcpus=8 -f /home/vm/vm14.qcow5 -s 100 --location=http://ftp.us.debian.org/debian/dists/squeeze/main/installer-amd64/ --vnc :2 --network=bridge:br0 --hvmCode:
ERROR operation failed: failed to retrieve chardev info in qemu with 'info chardev' |
| All times are GMT +2. The time now is 10:40. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.