switch to the uefi flavored base boxes
This commit is contained in:
parent
254ce1189d
commit
ed2d248c6c
|
|
@ -29,9 +29,9 @@ This will:
|
|||
|
||||
# Usage
|
||||
|
||||
Build and install the [Ubuntu 22.04 Base Box](https://github.com/rgl/ubuntu-vagrant).
|
||||
Build and install the [Ubuntu 22.04 UEFI Base Box](https://github.com/rgl/ubuntu-vagrant).
|
||||
|
||||
Build and install the [Windows 2022 Base Box](https://github.com/rgl/windows-vagrant).
|
||||
Build and install the [Windows 2022 UEFI Base Box](https://github.com/rgl/windows-vagrant).
|
||||
|
||||
Add the following entry to your `/etc/hosts` file:
|
||||
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ Vagrant.configure(2) do |config|
|
|||
end
|
||||
|
||||
config.vm.define :nexus do |config|
|
||||
config.vm.box = 'ubuntu-22.04-amd64'
|
||||
config.vm.box = 'ubuntu-22.04-uefi-amd64'
|
||||
config.vm.hostname = nexus_domain
|
||||
config.vm.network 'private_network', ip: nexus_ip
|
||||
config.vm.provider :libvirt do |lv, config|
|
||||
|
|
@ -48,7 +48,7 @@ Vagrant.configure(2) do |config|
|
|||
end
|
||||
|
||||
config.vm.define :windows do |config|
|
||||
config.vm.box = 'windows-2022-amd64'
|
||||
config.vm.box = 'windows-2022-uefi-amd64'
|
||||
config.vm.network 'private_network', ip: '192.168.56.4'
|
||||
config.vm.provider :libvirt do |lv, config|
|
||||
config.vm.synced_folder '.', '/vagrant', type: 'smb', smb_username: ENV['USER'], smb_password: ENV['VAGRANT_SMB_PASSWORD']
|
||||
|
|
|
|||
|
|
@ -6,9 +6,20 @@ partition_number="$(echo "$partition_device" | perl -ne '/(\d+)$/ && print $1')"
|
|||
disk_device="$(echo "$partition_device" | perl -ne '/(.+?)\d+$/ && print $1')"
|
||||
|
||||
# resize the partition table.
|
||||
# Warning: Not all of the space available to /dev/sda appears to be used, you can fix the GPT to use all of the space (an extra 50331648 blocks) or continue with the current setting?
|
||||
# Fix/Ignore? Fix
|
||||
# Partition number? 2
|
||||
# Warning: Partition /dev/sda2 is being used. Are you sure you want to continue?
|
||||
# Yes/No?
|
||||
# Yes
|
||||
# End? [8589MB]?
|
||||
# 100%
|
||||
parted ---pretend-input-tty "$disk_device" <<EOF
|
||||
resizepart $partition_number 100%
|
||||
yes
|
||||
Fix
|
||||
$partition_number
|
||||
Yes
|
||||
100%
|
||||
EOF
|
||||
|
||||
# resize the file system.
|
||||
|
|
|
|||
Loading…
Reference in New Issue