C:\tool\Oracle\VirtualBox>VBoxManage list vms "centos" {162f777f-e3c4-4717-8b5b-4a4e43a8b552} "debian" {48ebecba-77ec-483d-ab73-bf9ee777e2f6} "ubuntu" {d8050b3a-b04b-4fe9-8a90-16086dac0ae9}
前面是NAME,后面是UUID,之后的name用这连个代替都可以 三、命令行启动虚拟机
1 2 3
C:\tool\Oracle\VirtualBox>VBoxManage startvm "ubuntu" --type headless Waiting for VM "ubuntu" to power on... VM "ubuntu" has been successfully started.
headless是在后台运行,并且默认开启vrdp服务,可以通过远程桌面工具来访问
下面是打开ubuntu之后用Xshell链接的
1 2 3 4 5 6 7 8 9 10 11 12 13 14
Connecting to 127.0.0.1:2222... Connection established. To escape to local shell, press 'Ctrl+Alt+]'.
Welcome to Ubuntu 16.04 LTS (GNU/Linux 4.4.0-62-generic x86_64)
* Documentation: https://help.ubuntu.com/
362 个可升级软件包。 0 个安全更新。
Last login: Sat Feb 18 16:25:58 2017 from 10.0.2.2 hisen@hisen-VirtualBox:~$ ls download 公共的 模板 视频 图片 文档 下载 音乐 桌面