现在的位置: 首页 > 综合 > 正文

VNC XEN 双鼠标问题 以及 使用 virt-manager 工具创建的 Xen 虚拟机配置文件不在 /etc/xen/ 目录中了

2012年12月23日 ⁄ 综合 ⁄ 共 2812字 ⁄ 字号 评论关闭

0.本人用的是Ubuntu 12.04,在其中安装xen 4.1,用的是virt-manager安装虚拟机


1.VNC XEN 双鼠标问题,在配置文件中加入:

找到:(usb 1),在之后加入:

(usbdevice tablet)

Ctrl+F找到了两处usb,我在之后都添加了如上语句。


然后保存

然后重启xend服务(不重启,你的sxp文件就被会重置)

service restart xend


2.使用 virt-install 工具创建的 Xen 虚拟机配置文件不在 /etc/xen/ 目录中了,可以使用下面的方法查看:



chenjunlu@ubuntu-Xen:/var/lib/xend$ sudo passwd root

Enter new UNIX password:

Retype new UNIX password:

passwd: password updated successfully

chenjunlu@ubuntu-Xen:/var/lib/xend$ su -

Password:       

root@ubuntu-Xen:~# cd /var/lib/xend/domains/

root@ubuntu-Xen:/var/lib/xend/domains# ls

1cddab93-e5b5-0ed4-bce1-0456688e783b

root@ubuntu-Xen:/var/lib/xend/domains# cat 1cddab93-e5b5-0ed4-bce1-0456688e783b/config.sxp

(domain

    (domid 4)

    (vcpus_params ((cap 0) (weight 256)))

    (PV_args '')

    (memory_static_min 0)

    (HVM_boot_policy '')

    (PV_bootloader /usr/lib/xen-default/bin/pygrub)

    (pool_name Pool-0)

    (auto_power_on False)

    (memory_static_max 536870912)

    (cpus (()))

    (actions_after_shutdown destroy)

    (memory_dynamic_max 536870912)

    (memory_sharing 0)

    (superpages 0)

    (is_a_template False)

    (PV_bootloader_args '')

    (memory_dynamic_min 536870912)

    (VCPUs_live 1)

    (target 0)

    (actions_after_crash restart)

    (uuid 1cddab93-e5b5-0ed4-bce1-0456688e783b)

    (PV_ramdisk '')

    (other_config ())

    (name_label vm01)

    (PV_kernel '')

    (actions_after_reboot restart)

    (VCPUs_at_startup 1)

    (HVM_boot_params ())

    (platform ((tsc_mode 0) (pci ()) (nomigrate 0)))

    (VCPUs_max 1)

    (Description '')

    (pool_name Pool-0)

    (bootloader /usr/lib/xen-default/bin/pygrub)

    (vcpus 1)

    (cpus (()))

    (on_poweroff destroy)

    (description '')

    (on_crash restart)

    (uuid 1cddab93-e5b5-0ed4-bce1-0456688e783b)

    (bootloader_args '')

    (name vm01)

    (on_reboot restart)

    (maxmem 512)

    (memory 512)

    (shadow_memory 0)

    (vcpu_avail 1)

    (features '')

    (on_xend_start ignore)

    (on_xend_stop ignore)

    (start_time 1368765816.0)

    (image

        (linux

            (kernel '')

            (superpages 0)

            (pci ())

            (nomigrate 0)

            (tsc_mode 0)

            (notes

                (FEATURES

                    'writable_page_tables|writable_descriptor_tables|auto_translated_physmap|pae_pgdir_above_4gb|supervisor_mode_kernel'

                )

                (VIRT_BASE 18446744071562067968)

                (GUEST_VERSION 2.6)

                (PADDR_OFFSET 18446744071562067968)

                (GUEST_OS linux)

                (HYPERCALL_PAGE 18446744071564189696)

                (LOADER generic)

                (ENTRY 18446744071564165120)

                (XEN_VERSION xen-3.0)

            )

        )

    )

    (status 1)

    (state ------)

    (store_mfn 138822)

    (console_mfn 138821)

    (device

        (vif

            (bridge virbr0)

            (mac 00:16:3e:8d:b5:31)

            (script /etc/xen/scripts/vif-bridge)

            (uuid ae0f0484-4d0c-923f-8e8b-30b8bf846f80)

            (backend 0)

        )

    )

    (device

        (vbd

            (protocol x86_64-abi)

            (uuid a35aa2d6-145c-447c-a716-8b6c78dc3756)

            (bootable 1)

            (dev xvda:disk)

            (uname file:/xen/vm01.img)

            (mode w)

            (backend 0)

            (VDI '')

        )

    )

)

抱歉!评论已关闭.