Quantcast
Channel: Ubuntu Forums - Virtualisation
Viewing all articles
Browse latest Browse all 4211

[server] Can't remotely access VM - Server 16.04

$
0
0
Greetings all,
Currently running 16.04 with the latest updates. I had a year ago got a VM of Server working and was able to VNC to it without issue. Didn't use it for a year and forgot password so I blew it away to spin up another one. Figured it was easy enough, however I can't VNC to the new VM. Which makes it impossible for me to finish the OS install since my sever is headless.

Note, I did a dist-upgrade on the host box between then and now. I also used these instructions, which I used before successfully - http://xmodulo.com/use-kvm-command-l...an-ubuntu.html

Hardware is a HP Gen 7 Microserver w/ on board, and additional NIC.

Configs -

XML -
Code:

<domain type='kvm'> 
<name>webserver</name>
  <uuid>662f06ba-d823-11e5-8def-5f89d10e7a13</uuid>
  <memory>1048576</memory>
  <currentMemory>1048576</currentMemory>
  <vcpu>1</vcpu>
  <os>
    <type>hvm</type>
    <boot dev='cdrom'/>
  </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="/kvm/vms/webserver.img"/>
      <target dev="vda" bus="virtio"/>
      <address type="pci" domain="0x0000" bus="0x00" slot="0x04" function="0x0"/>
    </disk>
    <disk type="file" device="cdrom">
      <driver name="qemu" type="raw"/>
      <source file="/kvm/iso/ubuntu-15.10-server-amd64.iso"/>
      <target dev="hdc" bus="ide"/>
      <readonly/>
      <address type="drive" controller="0" bus="1" target="0" unit="0"/>
    </disk>
    <interface type='bridge'>
      <source bridge='virbr0'/>
      <mac address="00:00:A3:B0:56:10"/>
    </interface>
    <controller type="ide" index="0">
      <address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x1"/>
    </controller>
    <input type='mouse' bus='ps2'/>
    <graphics type='vnc' port='-1' autoport="yes" listen='0.0.0.0'/>
    <console type='pty'>
      <target port='0'/>
    </console>
  </devices>
</domain>

/etc/network/interfaces -
Code:

# This file describes the network interfaces available on your system# and how to activate them. For more information, see interfaces(5).


# The loopback network interface
auto lo
iface lo inet loopback


# The primary network interface
auto em1
iface em1 inet static
  address 192.168.1.3
  netmask 255.255.255.0
  network 192.168.1.0
  gateway 192.168.1.254
  dns-nameservers 192.168.1.2


# NIC addition
auto p2p1
iface p2p1 inet manual


#virtual interface for VM's
auto virbr0
iface virbr0 inet static
    address 192.168.1.4
    netmask 255.255.255.0
    network 192.168.1.0
    gateway 192.168.1.254
    dns-nameservers 192.168.1.2
  bridge_ports p2p1
  bridge_stp off
  bridge_fd 0
  bridge_maxwait 0

virsh list -
Code:

Id    Name                          State
----------------------------------------------------
 3    webserver                      running

vncdisplay webserver -
Code:

:0
brctl show -
Code:

bridge name    bridge id              STP enabled    interfaces
virbr0          8000.00133b0f9359      no              p2p1
                                                        vnet0

sudo netstat -nap | egrep '(kvm|qemu)' -
Code:

tcp        0      0 0.0.0.0:5900            0.0.0.0:*              LISTEN      2206/qemu-system-x8
unix  2      [ ACC ]    STREAM    LISTENING    21917    2206/qemu-system-x8 /var/lib/libvirt/qemu/domain-webserver/monitor.sock
unix  3      [ ]        STREAM    CONNECTED    22766    2206/qemu-system-x8 /var/lib/libvirt/qemu/domain-webserver/monitor.sock

ifconfig -
Code:

em1      Link encap:Ethernet  HWaddr 38:ea:a7:a9:e7:7e
          inet addr:192.168.1.3  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::3aea:a7ff:fea9:e77e/64 Scope:Link
          inet6 addr: 2602:306:3be1:6ed0:3aea:a7ff:fea9:e77e/64 Scope:Global
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:78291 errors:0 dropped:0 overruns:0 frame:0
          TX packets:11738 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:7114940 (7.1 MB)  TX bytes:1926283 (1.9 MB)
          Interrupt:18


lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:464 errors:0 dropped:0 overruns:0 frame:0
          TX packets:464 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1
          RX bytes:30226 (30.2 KB)  TX bytes:30226 (30.2 KB)


p2p1      Link encap:Ethernet  HWaddr 00:13:3b:0f:93:59
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:86644 errors:0 dropped:60 overruns:0 frame:0
          TX packets:912 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:6997602 (6.9 MB)  TX bytes:88008 (88.0 KB)


virbr0    Link encap:Ethernet  HWaddr 00:13:3b:0f:93:59
          inet addr:192.168.1.4  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: 2602:306:3be1:6ed0:213:3bff:fe0f:9359/64 Scope:Global
          inet6 addr: fe80::213:3bff:fe0f:9359/64 Scope:Link
          inet6 addr: 2602:306:3be1:6ed0:ccc0:f58f:145b:652f/64 Scope:Global
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:79738 errors:0 dropped:0 overruns:0 frame:0
          TX packets:912 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:4640139 (4.6 MB)  TX bytes:88008 (88.0 KB)


vnet0    Link encap:Ethernet  HWaddr fe:00:a3:b0:56:10
          inet6 addr: fe80::fc00:a3ff:feb0:5610/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:75749 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:5434816 (5.4 MB)

Thank you for your time.

Viewing all articles
Browse latest Browse all 4211

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>