Hoà*_*yễn 3 parallels diskspace vagrant homestead
我正在尝试在 Macbook 上使用 Parallels 提供程序为我的虚拟服务器 (Homestead) 扩展更多空间。
\n\n默认磁盘大小为 18GB
\n\nvagrant@homestead:~$ df -h\nFilesystem Size Used Avail Use% Mounted on\nudev 964M 0 964M 0% /dev\ntmpfs 199M 7.7M 192M 4% /run\n/dev/mapper/homestead--vg-root 18G 11G 5.9G 65% /\ntmpfs 994M 8.0K 994M 1% /dev/shm\ntmpfs 5.0M 0 5.0M 0% /run/lock\ntmpfs 994M 0 994M 0% /sys/fs/cgroup\n/dev/mapper/homestead--vg-mysql--master 9.8G 234M 9.1G 3% /homestead-vg/master\n10.211.55.2:/Users/orange/code 234G 234G 165G 59% /home/vagrant/code\nvagrant 234G 69G 165G 30% /vagrant\ntmpfs 199M 0 199M 0% /run/user/1000\nRun Code Online (Sandbox Code Playgroud)\n\n我不知道为什么VM默认空间是64G但实际上Homestead服务器只有18GB
\n\n\xe2\x98\x81 homestead-7.pvm prl_disk_tool resize --info --units G --hdd harddisk1.hdd\nOperation progress 100 %\nDisk information:\n SectorSize: 512\n Size: 64G\n Minimum: 64G\n Minimum without resizing the last partition: 64G\n Maximum: 2047G\n\n Warning! The last partition cannot be resized because its file system is either not supported or damaged.\n Make sure that the virtual HDD is not used by another process.\n Warning! The disk image you specified has snapshots.\n You need to delete all snapshots using the prlctl command line utility before resizing the disk.\nRun Code Online (Sandbox Code Playgroud)\n\n查了很多人还是没有解决。
\n\n我该如何解决这个问题?\n(抱歉我的英语不好)
\n根据GitHub 上报告的问题中的讨论,以下命令将有所帮助:
lvextend -r -l +100%FREE /dev/mapper/homestead--vg-root
Run Code Online (Sandbox Code Playgroud)
有一个提交应该可以解决这个问题,但它尚未在标记的 Vagrant 版本中发布。
整个舞蹈的原因是 Vagrant 打包 VirtualBox 磁盘,因为.vmdk它没有相同的可调整大小选项.vdi。
| 归档时间: |
|
| 查看次数: |
984 次 |
| 最近记录: |