I generate ledger wallet in metamask

Make sure your ledger firmware is up to date. (ledger live software) then install the Ethereum app.
Open the app on the Ledger, it should say “Application Ready” on the screen.
Inside Metamask, click Connect Hardware Wallet
Screenshot (14)
Click your wallet on this screen, then connect. You should get a new account in Metamask (you can change between them from the circle menu)