Results 1 to 9 of 9
Hello,
I would really appreciate if somebody could answer this one.
So, I have successfully created a virtual machine using <a href="https://help.ubuntu.com/community/KVM" target="_blank">this guide.
Only problem is that I haven't ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 01-07-2011 #1Just Joined!
- Join Date
- Jan 2011
- Posts
- 5
Can't connect to kvm virtual machine
Hello,
I would really appreciate if somebody could answer this one.
So, I have successfully created a virtual machine using <a href="https://help.ubuntu.com/community/KVM" target="_blank">this guide.
Only problem is that I haven't been able to connect the virtual machine in any way. It has definitely started as I can ping to the ip address which I've assigned for it.
I created a VM called hostnameformyvm3 using
This should've made possible to connect via ssh, right? When I do nmap to the ip it says that all ports are closed.Code:ubuntu-vm-builder kvm hardy --domain newvm3 --dest newvm3 --arch i386 --hostname hostnameformyvm3 --mem 256 --user user --pass pass --ip 192.168.1.49 --addpkg acpid vim openssh-server --libvirt qemu:///system
It's starting to be really frustrating that I can't connect to it any way. Could someone help me, please.
Edit: when I start the VM syslog says only:
My /etc/libvirt/qemu/hostnameformyvm3.xmlCode:Jan 6 15:47:52 ubuntuserver kernel: [ 3087.572787] device vnet0 entered promiscuous mode<br /> Jan 6 15:47:52 ubuntuserver kernel: [ 3087.573773] br0: port 2(vnet0) entering forwarding state<br /> Jan 6 15:48:02 ubuntuserver kernel: [ 3097.897014] vnet0: no IPv6 routers present
I'm running Ubuntu server 10.04. Is there any other way to connect to it.Code:<domain type='kvm'> <name>hostnameformyvm3</name> <uuid>2f7728c4-85e9-f9f0-b1e9-7ca56d458a4e</uuid> <memory>262144</memory> <currentMemory>262144</currentMemory> <vcpu>1</vcpu> <os> <type arch='i686' machine='pc-0.12'>hvm</type> <boot dev='hd'/> </os> <features> <acpi/> </features> <clock offset='utc'/> <on_poweroff>destroy</on_poweroff> <on_reboot>restart</on_reboot> <on_crash>destroy</on_crash> <devices> <emulator>/usr/bin/kvm</emulator> <disk type='file' device='disk'> <driver name='qemu' type='qcow2'/> <source file='/etc/libvirt/qemu/newvm3/tmpwYBA2i.qcow2'/> <target dev='hda' bus='ide'/> </disk> <interface type='bridge'> <mac address='52:54:00:31:fb:cf'/> <source bridge='br0'/> <model type='virtio'/> </interface> <input type='mouse' bus='ps2'/> <graphics type='vnc' port='-1' autoport='yes' listen='127.0.0.1'/> <video> <model type='cirrus' vram='9216' heads='1'/> </video> </devices> </domain>
I would seriously appreciate if someone could find a solution
- 01-07-2011 #2
Has the SSHD been started on the guest host?
- 01-07-2011 #3Just Joined!
- Join Date
- Jan 2011
- Posts
- 5
Thank you for answering Lazydog,
I think that could be the problem too, but I don't know how to check it. How do I check whether it has started or not.
- 01-07-2011 #4
Form the CLI:
If sshd is running then you will get something back. If it is not running then you will get nothing.Code:ps -e | grep sshd
- 01-07-2011 #5Just Joined!
- Join Date
- Jan 2011
- Posts
- 5
- 01-07-2011 #6Just Joined!
- Join Date
- Jan 2011
- Posts
- 5
How do I access the virtual machine?
- 01-08-2011 #7
That command you run on the VM not the host machine.
- 01-08-2011 #8Just Joined!
- Join Date
- Jan 2011
- Posts
- 5
Okay, this maybe a stupid question, but how do I run the command on the vm when I can't/don't know how to access the command line of the vm?
- 01-09-2011 #9
Is the VM on your machine or a remote machine?
If local then run virt-manager. There you can open the VM and be at the CLI or GUI of the VM.
Another question is if it is local are you running a bride on your interface so this VM can connect to the internet?
If it is remote then you are going to have to have someone there look and see if SSH is running and the firewall isn't blocking it.
Sorry I assumed that you would know how to log onto the VM locally if you set it up.


Reply With Quote

