亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費(fèi)注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 4073 | 回復(fù): 3
打印 上一主題 下一主題

simics虛擬出的solaris10可以添加硬盤和其他設(shè)備嗎? [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報告]
發(fā)表于 2008-10-22 12:32 |只看該作者 |倒序?yàn)g覽
按照精華區(qū)里的文章安裝了solaris10,我想問能否再添加一些自定義設(shè)備比如硬盤
這樣可以進(jìn)行一些具體的實(shí)際操作練習(xí),謝謝!

論壇徽章:
0
2 [報告]
發(fā)表于 2008-10-22 14:10 |只看該作者
沒用過
VMware虛擬出的就可以

論壇徽章:
0
3 [報告]
發(fā)表于 2008-10-22 18:26 |只看該作者
我也碰到同樣問題~

論壇徽章:
0
4 [報告]
發(fā)表于 2008-10-30 18:39 |只看該作者
可以的! Adding a new Disk to a SunFire Machine


Add a SCSI Disk Component
First create a file in [workspace]/targets/sunfire/ called peanut-disk.simics. In this file add the following contents:


script-branch {
    wait-for-variable machine_defined
    local $disk = (create-std-scsi-disk size = 4256972800)
    connect-components $scsi_bus scsi-slot-2 $disk scsi-bus
}

run-command-file peanut-common.simics
This will run a script branch that first waits for the machine to be defined by the machine configuration script (included from peanut-common.simics). Once the $machine_defined variable has triggered, a SCSI disk component, representing a 4GB disk, will be created that on the following line is connected to the SCSI bus component on connector scsi-slot-2.


Prepare the Boot
Start Simics, but do not start the simulation. Before booting, the disk needs an empty partition table for Solaris to recognize the disk. The partition table must contain a geometry that matches the size of the disk. Also add a large partition that covers the full disk.


simics> sd1.create-sun-vtoc-header 5470 19 80
simics> sd1.create-sun-vtoc-partition number = 0 start-block = 0 num-blocks = ((5470 - 2) * 19 * 80) flag = RW tag = root


--------------------------------------------------------------------------------
Note: Configuring partitions can also be done using the Solaris format command once the simulated machine has booted.
--------------------------------------------------------------------------------

The partition table should now look something like:


Partition Table:
Number   Tag             Flag                 Start        End       Size
  0      2 (root)        0 (RW)                   0    8311359    8311360
  2      5 (backup)      1 (unmountable)          0    8311359    8311360
Before booting, tell Solaris that new hardware has been added, by adding the -r argument to the OBP boot command variable:
simics> system_cmp0.set-prom-env boot-command "boot disk1 -rv"

Configure Solaris
Start the simulation and wait for the simulated machine to reach the prompt. A file system has to be created on the new disk, this is done using the Solaris newfs command. At the same time, also add a mount point, and an entry in the file-system table. This way Solaris will automatically mount the disk on the next boot.


# newfs /dev/dsk/c0t2d0s0
newfs: construct a new file system /dev/rdsk/c0t2d0s0: (y/n)? y

<output from newfs here>

# mkdir /disk
# cat >> /etc/vfstab
/dev/dsk/c0t2d0s0    /dev/rdsk/c0t2d0s0   /disk ufs  2    yes    -
<control-D>
# mount /disk
The disk can now be accessed as /disk/ in the file-system.

Save the Changes
To save the changes to the new disk, shut down the simulated machine and save the modifications. Issue:


# init 0
then wait for Solaris to shut down, stop the simulation and save the all modifications using the save-persistent-state command. But first remove -r from the boot command, or it will be for the next boot as well, making the boot slower.
simics> system_cmp0.set-prom-env boot-command "boot disk1 -v"
simics> save-persistent-state new-disk1.state
Now exit Simics, and restart the peanut-disk.simics script. Before running, load the disk modifications saved earlier:
simics> load-persistent-state new-disk1.state
Now boot the machine again. The new disk will be mounted as /disk/.
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報專區(qū)
中國互聯(lián)網(wǎng)協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP