VNC XEN 双鼠标问题 以及 使用 virt-manager 工具创建的 Xen 虚拟机配置文件不在 /etc/xen/ 目录中了
2013-07-23 23:42
681 查看
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 '')
)
)
)
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 '')
)
)
)
相关文章推荐
- VNC XEN 双鼠标问题 以及 使用 virt-manager 工具创建的 Xen 虚拟机配置文件不在 /etc/xen/ 目录中了
- [图文] Fedora 28 使用 Virt-Manager 创建 KVM 虚拟机以及 配置 KVM 虚拟机
- Xen使用virt-manager创建虚拟机
- centos 5.1 xen virt-manager创建虚拟机时出现Unable to complete install: 'Invalid install location'的问题
- FCKeditor是使用非常广泛的HTML编辑器,本文从 ASP.NET 的使用场景对 FCKeditor 与 FCKeditor.NET 的配置、功能扩展(如自定义文件上传子目录、自定义文件名、上传图片的后期处理等)、以及安全性进行初步的阐述。
- 使用virt-install 创建Xen虚拟机
- 使用libvirt的xml配置文件创建虚拟机
- 使用sed工具处理/etc/fstab配置文件
- PowerDesigner16.5快速入门显示,注释comment配置方法,以及创建sql文件过程中需要注意的一些问题
- 将数据源配置放在Tomcat的config目录下,使用curl工具上传文件
- Ubuntu下使用virt-manager创建虚拟机
- 使用myeclispe或者sts工具,创建的myBatis的 xml文件不提示的问题解决方法
- 使用libvirt创建虚拟机,虚拟机的配置文件内容
- 用virt-manager演示Xen虚拟机的创建及日常管理操作命令
- IT咨询顾问:一次吐血的项目救火 java或判断优化小技巧 asp.net core Session的测试使用心得 【.NET架构】BIM软件架构02:Web管控平台后台架构 NetCore入门篇:(十一)NetCore项目读取配置文件appsettings.json 使用LINQ生成Where的SQL语句 js_jquery_创建cookie有效期问题_时区问题
- 在xen上使用virt-install命令创建虚拟机并安装操作系统
- 配置文件刷新ConfigurationManager.RefreshSection使用问题
- IntelliJ IDEA 工具使用 - 创建web项目以及tomcat配置
- 使用virt-install 创建Xen虚拟机
- 文件移动renameTo,网上说使用nio复制最快可避免renameTo的缺陷(加mkdir创建目录问题)