add homework 3.6

This commit is contained in:
2022-03-09 10:34:47 +07:00
parent 661a776242
commit a7d9728049
4 changed files with 225 additions and 8 deletions

View File

@@ -69,12 +69,13 @@ Vagrant.configure("2") do |config|
# apt-get install -y apache2
# SHELL
config.vm.provider :virtualbox do |vb|
lvm_experiments_disk0_path = "/tmp/lvm_experiments_disk0.vmdk"
lvm_experiments_disk1_path = "/tmp/lvm_experiments_disk1.vmdk"
vb.customize ['createmedium', '--filename', lvm_experiments_disk0_path, '--size', 2560]
vb.customize ['createmedium', '--filename', lvm_experiments_disk1_path, '--size', 2560]
vb.customize ['storageattach', :id, '--storagectl', 'SATA Controller', '--port', 1, '--device', 0, '--type', 'hdd', '--medium', lvm_experiments_disk0_path]
vb.customize ['storageattach', :id, '--storagectl', 'SATA Controller', '--port', 2, '--device', 0, '--type', 'hdd', '--medium', lvm_experiments_disk1_path]
end
# for homework 3.5
# config.vm.provider :virtualbox do |vb|
# lvm_experiments_disk0_path = "/tmp/lvm_experiments_disk0.vmdk"
# lvm_experiments_disk1_path = "/tmp/lvm_experiments_disk1.vmdk"
# vb.customize ['createmedium', '--filename', lvm_experiments_disk0_path, '--size', 2560]
# vb.customize ['createmedium', '--filename', lvm_experiments_disk1_path, '--size', 2560]
# vb.customize ['storageattach', :id, '--storagectl', 'SATA Controller', '--port', 1, '--device', 0, '--type', 'hdd', '--medium', lvm_experiments_disk0_path]
# vb.customize ['storageattach', :id, '--storagectl', 'SATA Controller', '--port', 2, '--device', 0, '--type', 'hdd', '--medium', lvm_experiments_disk1_path]
#end
end