Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I already saw https://answers.launchpad.net/nova/+question/145820 which looks like to be a similar problem, but I am already with FlatDHCPManager. I also tried to connect to the VM through a serial console, but it fails:

==== $ virsh console instance-00000019 ==== Connected to domain instance-00000019 Escape character is ^] error: internal error character device (null) is not using a PTY

==== $ cat /var/lib/nova/instances/instance-00000019/libvirt.xml ==== <domain type="kvm"> <name>instance-00000019</name> <memory>524288</memory> <os> <type>hvm</type> <kernel>/var/lib/nova/instances/instance-00000019/kernel</kernel> <cmdline>root=/dev/vda console=ttyS0</cmdline> </os> <features> <acpi/> </features> <vcpu>1</vcpu> <devices> <disk type="file"> <driver type="qcow2"/> <source file="/var/lib/nova/instances/instance-00000019/disk"/> <target dev="vda" bus="virtio"/> </disk>

    <interface type='bridge'>
        <source bridge='br100'/>
        <mac address='02:16:3e:1b:62:26'/>
        <!--   <model type='virtio'/>  CANT RUN virtio network right now -->
        <filterref filter="nova-instance-instance-00000019-02163e1b6226">
            <parameter name="IP" value="138.96.126.201" />
            <parameter name="DHCPSERVER" value="138.96.126.1" />
        </filterref>
    </interface>
    <!-- The order is significant here.  File must be defined first -->
    <serial type="file">
        <source path='/var/lib/nova/instances/instance-00000019/console.log'/>
        <target port='1'/>
    </serial>

    <console type='pty' tty='/dev/pts/2'>
        <source path='/dev/pts/2'/>
        <target port='0'/>
    </console>

    <serial type='pty'>
        <source path='/dev/pts/2'/>
        <target port='0'/>
    </serial>

    <graphics type='vnc' port='-1' autoport='yes' keymap='en-us' listen='0.0.0.0'/>
</devices>

</domain>