KVM的HVM虚拟机使用非串口方式建立virsh console 连接
2014-09-30 01:09
507 查看
在去年写的文章中,http://blog.csdn.net/dobell/article/details/14442457,写到了怎么利用serial 设备进行console连接
不过比较麻烦,因为1.需要修改虚拟机内部的grub启动选项,2 vnc连接过去无法同时使用
后来发现libvirt支持了virio启动,那么就容易了多了。
虚拟机配置文件的xml如下
然后virsh create hvm201.xml创建虚拟机即可。
这次就不截图了,具体如下
不过比较麻烦,因为1.需要修改虚拟机内部的grub启动选项,2 vnc连接过去无法同时使用
后来发现libvirt支持了virio启动,那么就容易了多了。
虚拟机配置文件的xml如下
<devices>
<console type='pty'> <source path='/dev/pts/5'/> <target type='virtio' port='0'/> </console>
</devices>
然后virsh create hvm201.xml创建虚拟机即可。
这次就不截图了,具体如下
root@zju-PowerEdge-T610:/share/nfs181# virsh console hvm201 连接到域 hvm201 换码符为 ^] Ubuntu 12.04.1 LTS hvm183 hvc0 hvm183 login: Password: root@zju-PowerEdge-T610:/share/nfs181# dmesg|tail [ 184.441602] init: Failed to spawn ufw post-stop process: unable to execute: No such file or directory [ 184.553217] ip_tables: (C) 2000-2006 Netfilter Core Team [ 184.662792] nf_conntrack version 0.5.0 (16384 buckets, 65536 max) [ 184.751382] IPv6: ADDRCONF(NETDEV_UP): virbr0: link is not ready [ 185.637728] init: Failed to spawn ufw pre-start process: unable to execute: No such file or directory [ 185.643237] init: Failed to spawn ufw post-stop process: unable to execute: No such file or directory [ 185.665464] device vnet0 entered promiscuous mode [ 185.685296] xenbr0: port 2(vnet0) entered forwarding state [ 185.685306] xenbr0: port 2(vnet0) entered forwarding state [ 200.710430] xenbr0: port 2(vnet0) entered forwarding state root@zju-PowerEdge-T610:/share/nfs181#不过这样还是有个缺点,grub还是得从vnc进入进行选择,而且没有记录启动过程中的信息
相关文章推荐
- KVM的HVM虚拟机使用virsh console 方式连接
- XEN的HVM虚拟机使用 xl/xm console 方式连接
- 虚拟机使用NAT方式共享主机网络连接上网
- 亚马逊EC2建立虚拟机并使用ssh连接
- 使用JDBC建立各种数据库的连接方式集萃
- android开发(20) 使用adb建立pc和android设备之间的连接。usb连接方式。
- 虚拟机+ubuntu系统 使用NAT网络连接方式 无网络连接问题
- 在虚拟机中使用桥接方式连接实例
- usb转RS232通用串口与虚拟机连接使用
- 虚拟机中使用host-only方式连接外网
- android开发(20) 使用adb建立pc和android设备之间的连接。usb连接方式。
- nagios当中使用nonblocking方式建立tcp连接
- BLE CC2541 DMA串口查询方式环形缓冲区的建立 与函数指针 回掉函数的使用
- kvm:连接虚拟机的几种方式(ssh,vnc,console,virt-viewer)
- nginx连接后端服务时,使用upstream的方式,并且设置keepalive可以建立长连接,减少创建连接的消耗,提升效率
- 使用SecureCRT远程连接虚拟机CentOS(Ip不对连接不了解决方式)
- KVM使用virsh console无法连接的解决办法(转)
- VM 虚拟机中使用 IAR MSP430 USB 串口仿真器无法连接的问题
- 使用JDBC建立数据库连接的两种方式
- 使用virsh console连接虚拟机